<template>
    <div>
            <div class="card mt-3 bg-white p-3">
        <div class="card-header d-flex ai-center pb-3">
            <i class="iconfont" :class="`icon-${icon}`"></i>
            <div class="navlink flex-1 px-2 fs-xl">{{title}}</div>
            <i class="iconfont icon-menu"></i>
        </div>
        <div class="card-body pt-3 ">
            <slot></slot>
    </div>
    </div>
    </div>
</template>

<script>

export default {
    name: 'VueCard',    
    props:{
        title:{type:String,required:true},
        icon:{type:String,required:true}
    }
};
</script>

<style lang="scss" scoped>
.card{
    .card-header{
    border-bottom: 1px solid #d4d0de;
}
    border-bottom: 1px solid #d4d0de;
}

</style>